// 让最后一个盒子距离底部有一定的距离
:last-of-type.blog-box {
  margin-bottom: 260px;
}

.blog-box {
  border-radius: 3px;
  margin-top: 15px;
  background-color: #fff;

  .top-box {
    display: flex;

    // 博客内容的头像
    .head-portrait {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      margin-top: 15px;
      margin-left: 15px;
    }

    // 昵称盒子
    .nick-box {
      margin-top: 20px;
      margin-left: 15px;

      .nickname {
        color: black;
        font-weight: 600;
        font-size: 18px;
      }

      .time {
        font-size: 13px;
        color: #808080;
      }
    }

    // 下拉的删除按钮
    .dropDownButtonBox {
      width: 40px;
      height: 40px;
      margin-left: 390px;
      margin-top: 10px;
      user-select: none;
      cursor: pointer;

      .dropDownButton {
        width: 20px;
        height: 20px;
        margin-left: 10px;
        margin-top: 10px;
      }
    }
  }

  // 删除的模态框
  .deleteBox {
    width: 88px;
    float: right;
    margin-left: 50px;
    margin-right: 27px;
    margin-top: -20px;
    display: none;
    list-style: none;
    box-shadow: 0px 2px 8px 1px rgba(0, 0, 0, 0.2);

    li {
      font-size: 12px;
    }

    li:hover {
      color: #ff8140;
      background-color: rgb(245, 245, 245);
    }

    .option {
      width: 88px;
      height: 30px;
      text-align: center;
      line-height: 30px;
      background-color: #fff;
      cursor: pointer;
    }
  }

  // 确认框
  .ConfirmationBox {
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 9999;
    user-select: none;
    display: none;

    .Confirmation {
      width: 290px;
      height: 213px;
      position: absolute;
      top: 0px;
      left: 0px;
      right: 0px;
      bottom: 0px;
      margin: auto;
      background-color: #fff;
      border-top: 2px solid #fa7f40;

      // 关闭按钮
      .close {
        font-size: 30px;
        color: black;
        cursor: pointer;
        display: flex;
        margin-right: 15px;
        justify-content: flex-end;
      }

      .close:hover {
        color: #fa7f40;
      }

      // 确定吗
      .sureBox {
        width: 40px;
        margin: 20px auto;

        img {
          width: 40px;
        }
      }

      .sureDelete {
        text-align: center;
      }

      // 两个按钮的盒子
      .bottomBtn {
        position: absolute;
        bottom: 0px;
        left: 0px;
        right: 0px;
        height: 55px;
        background-color: #eee;
        display: flex;
        justify-content: space-around;
        align-items: center;

        button {
          width: 80px;
          height: 30px;
          border: 0px;
          font-size: 14px;
          cursor: pointer;
          outline: none;
          border: none;
          border-radius: 2px;
        }

        .determine {
          color: #fff;
          background-color: #ff8140;
        }

        .cancelBtn {
          color: black;
          background-color: #fff;
        }
      }
    }
  }

  // 博客内容
  .bottom-box {
    width: 480px;
    margin-left: 80px;
    margin-top: 15px;
    font-size: 15px;
    word-break: break-all;
  }

  // 博客图片内容
  .blogImg-box {
    width: 315px;
    margin-left: 80px;
    margin-top: 15px;

    img {
      width: 100px;
      height: 100px;
      cursor: pointer;
      overflow: hidden;
    }
  }

  // 点赞评论盒子
  .Liking-box {
    display: flex;
    user-select: none;
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 3px;
    margin-top: 20px;

    .comment,
    .Fabulous {
      width: 300px;
      font-size: 12px;
      height: 38px;
      color: #808080;
      border: 1px solid #f2f2f5;
      display: flex;
      justify-content: center;
      align-items: center;
      cursor: pointer;

      .FabulousImgBox {
        width: 22px;
        height: 22px;
        background-color: #fff;
        border-radius: 50%;
        display: inline-block;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-right: 6px;

        img {
          width: 15px;
          height: 15px;
        }
      }
    }

    .comment:hover,
    .Fabulous:hover {
      color: #ff8140;

      .FabulousImgBox {
        background-color: #ff804054;
      }
    }
  }

  // 评论框
  .Fabulous-box {
    width: 600px;
    background-color: rgba(255, 255, 255, 0.9);
    max-height: 500px;
    padding-bottom: 40px;
    display: none;
    overflow-y: auto;

    // 回复框的头像
    .Myportrait {
      width: 30px;
      height: 30px;
      position: relative;
      top: 30px;
      left: 17px;
      border-radius: 3px;
    }

    // 输入框
    .reply-inp-box {
      width: 480px;
      margin: auto;

      .reply-inp {
        padding: 3px;
        font-size: 14px;
        font-family: "微软雅黑";
        width: 480px;
        height: 80px;
        resize: none;
        box-shadow: 0px 0px 3px #cccccc inset;
      }
    }

    // 回复按钮
    .comment-btn {
      width: 62px;
      height: 26px;
      font-size: 13px;
      color: #fff;
      outline: none;
      border: none;
      cursor: pointer;
      background-color: #ff8140;
      border-radius: 2px;
      margin-top: 10px;
      margin-left: 478px;
    }

    // 模拟的内容
    .CommentReply {
      width: 550px;
      border-bottom: 1px solid rgb(160, 159, 159);
      margin: auto;
      padding-bottom: 20px;
      display: flex;

      // 头像
      .portrait {
        width: 30px;
        height: 30px;
        margin-top: 30px;
        margin-left: 17px;
        border-radius: 3px;
        vertical-align: middle;
      }

      // 内容
      .contentBox {
        margin-top: 30px;
        margin-left: 20px;
        width: 470px;

        .time {
          font-size: 12px;
          color: #5a5a5a;
        }

        .comment-data {
          display: inline-block;
          word-break: break-all;
          font-size: 14px;
        }
      }
    }
  }

  ::-webkit-scrollbar {
    width: 8px;
    background-color: #ffffff;
  }

  ::-webkit-scrollbar-thumb {
    background: #cfcfcf;
    border-radius: 8px;
  }
}